﻿
using Entity;
using Entity.DTO;
using Entity.ViewModel.OrderMaterial;
using System.Runtime.CompilerServices;
using System.Security.Principal;

namespace Bll
{
    /// <summary>
    /// 订单材料业务逻辑接口
    /// </summary>
    public interface IOrderMaterialBll
    {
        ///// <summary>
        ///// 创建订单材料
        ///// </summary>
        ///// <returns></returns>
        public bool CreateOrderMaterial(List<CreateOrderMaterialModel> model, out string msg);

        /// <summary>
        /// 软删除订单材料
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public bool DeleteOrderMaterial(string id);

        /// <summary>
        /// 批量软删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        public bool DeleteOrderMaterials(List<string> ids);

        /// <summary>
        /// 获取订单的备选材料集合
        /// </summary>
        /// <returns></returns>
        object GetMaterialList(string orderId, string title, int page, int limit, out int count);

        ///// <summary>
        ///// 根据订单材料id获取订单材料信息
        ///// </summary>
        ///// <param name="menuId"></param>
        ///// <returns></returns>
        //public object GetOrderMaterialById(string menuId);


        /// <summary>
        /// 获取订单材料集合
        /// </summary>
        public object GetOrderMaterialList(string orderId, string title, int page, int limit, out int count);


        ///// <summary>
        ///// 更新订单材料
        ///// </summary>
        ///// <returns></returns>
        //public bool UpdateOrderMaterial(string orderMaterialId, string title, string content,out string msg);

    }
}